package com.effectiv.gooruda.rest.domain;

import java.util.Date;
import java.util.Map;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


@ToString
public class Session  extends PesistentBase{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	@Getter @Setter
	private Date invalidatedOn;
	
	@Getter @Setter
	private String userName;
	
	@Getter @Setter
	private Map<String, String> attributes;
	
	public String getAttribute(String key){
		return attributes.get(key);
	}
 	
	public void setAttribute(String key, String value){
		attributes.put(key, value);
	}
}
